Batching updates in a dispersed storage network

ABSTRACT

A method for execution by a computing device includes, for each update operation of a plurality of update operations, creating a new batch update containing the update operation. The update operation is evaluated in an empty transaction context to generate cached values. When it is determined that the new batch overlaps with an existing waiting batch, the new batch is merged with the existing waiting batch, and intermediate are generated based on serially composing the update operations of the merged batches. When it is determined that the new batch overlaps with a running batch, the new batch is added to the existing waiting batches. Otherwise, immediate running of the new batch is authorized. The new batch is run by creating a CASN transaction from its evaluated transaction context that includes the cached values.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

Not applicable.

INCORPORATION-BY-REFERENCE OF MATERIAL SUBMITTED ON A COMPACT DISC

Not applicable.

BACKGROUND OF THE INVENTION Technical Field of the Invention

This invention relates generally to computer networks and more particularly to dispersing error encoded data.

Description of Related Art

Computing devices are known to communicate data, process data, and/or store data. Such computing devices range from wireless smart phones, laptops, tablets, personal computers (PC), work stations, and video game devices, to data centers that support millions of web searches, stock trades, or on-line purchases every day. In general, a computing device includes a central processing unit (CPU), a memory system, user input/output interfaces, peripheral device interfaces, and an interconnecting bus structure.

As is further known, a computer may effectively extend its CPU by using “cloud computing” to perform one or more computing functions (e.g., a service, an application, an algorithm, an arithmetic logic function, etc.) on behalf of the computer. Further, for large services, applications, and/or functions, cloud computing may be performed by multiple cloud computing resources in a distributed manner to improve the response time for completion of the service, application, and/or function. For example, Hadoop is an open source software framework that supports distributed applications enabling application execution by thousands of computers.

In addition to cloud computing, a computer may use “cloud storage” as part of its memory system. As is known, cloud storage enables a user, via its computer, to store files, applications, etc. on an Internet storage system. The Internet storage system may include a RAID (redundant array of independent disks) system and/or a dispersed storage system that uses an error correction scheme to encode data for storage.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING(S)

FIG. 1 is a schematic block diagram of an embodiment of a dispersed or distributed storage network (DSN) in accordance with the present invention;

FIG. 2 is a schematic block diagram of an embodiment of a computing core in accordance with the present invention;

FIG. 3 is a schematic block diagram of an example of dispersed storage error encoding of data in accordance with the present invention;

FIG. 4 is a schematic block diagram of a generic example of an error encoding function in accordance with the present invention;

FIG. 5 is a schematic block diagram of a specific example of an error encoding function in accordance with the present invention;

FIG. 6 is a schematic block diagram of an example of a slice name of an encoded data slice (EDS) in accordance with the present invention;

FIG. 7 is a schematic block diagram of an example of dispersed storage error decoding of data in accordance with the present invention;

FIG. 8 is a schematic block diagram of a generic example of an error decoding function in accordance with the present invention;

FIG. 9A is a schematic block diagram of an embodiment of a dispersed or distributed storage network (DSN) in accordance with the present invention;

FIG. 9B is a schematic block diagram of an embodiment of a dispersed or distributed storage network (DSN) in accordance with the present invention;

FIG. 10 is a logic diagram of an example of a method of batching updates in accordance with the present invention;

FIG. 11 depicts a cloud computing environment according to an embodiment of the present invention;

FIG. 12 depicts abstraction model layers according to an embodiment of the present invention; and

FIG. 13 depicts a block diagram of a computing device according to various embodiments of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 is a schematic block diagram of an embodiment of a dispersed, or distributed, storage network (DSN) 10 that includes a plurality of computing devices 12-16, a managing unit 18, an integrity processing unit 20, and a DSN memory 22. The components of the DSN 10 are coupled to a network 24, which may include one or more wireless and/or wire lined communication systems; one or more non-public intranet systems and/or public interne systems; and/or one or more local area networks (LAN) and/or wide area networks (WAN).

The DSN memory 22 includes a plurality of storage units 36 that may be located at geographically different sites (e.g., one in Chicago, one in Milwaukee, etc.), at a common site, or a combination thereof. For example, if the DSN memory 22 includes eight storage units 36, each storage unit is located at a different site. As another example, if the DSN memory 22 includes eight storage units 36, all eight storage units are located at the same site. As yet another example, if the DSN memory 22 includes eight storage units 36, a first pair of storage units are at a first common site, a second pair of storage units are at a second common site, a third pair of storage units are at a third common site, and a fourth pair of storage units are at a fourth common site. Note that a DSN memory 22 may include more or less than eight storage units 36. Further note that each storage unit 36 includes a computing core (as shown in FIG. 2, or components thereof) and a plurality of memory devices for storing dispersed error encoded data.

In various embodiments, each of the storage units operates as a distributed storage and task (DST) execution unit, and is operable to store dispersed error encoded data and/or to execute, in a distributed manner, one or more tasks on data. The tasks may be a simple function (e.g., a mathematical function, a logic function, an identify function, a find function, a search engine function, a replace function, etc.), a complex function (e.g., compression, human and/or computer language translation, text-to-voice conversion, voice-to-text conversion, etc.), multiple simple and/or complex functions, one or more algorithms, one or more applications, etc. Hereafter, a storage unit may be interchangeably referred to as a dispersed storage and task (DST) execution unit and a set of storage units may be interchangeably referred to as a set of DST execution units.

Each of the computing devices 12-16, the managing unit 18, and the integrity processing unit 20 include a computing core 26, which includes network interfaces 30-33. Computing devices 12-16 may each be a portable computing device and/or a fixed computing device. A portable computing device may be a social networking device, a gaming device, a cell phone, a smart phone, a digital assistant, a digital music player, a digital video player, a laptop computer, a handheld computer, a tablet, a video game controller, and/or any other portable device that includes a computing core. A fixed computing device may be a computer (PC), a computer server, a cable set-top box, a satellite receiver, a television set, a printer, a fax machine, home entertainment equipment, a video game console, and/or any type of home or office computing equipment. Note that each managing unit 18 and the integrity processing unit 20 may be separate computing devices, may be a common computing device, and/or may be integrated into one or more of the computing devices 12-16 and/or into one or more of the storage units 36. In various embodiments, computing devices 12-16 can include user devices and/or can be utilized by a requesting entity generating access requests, which can include requests to read or write data to storage units in the DSN.

Each interface 30, 32, and 33 includes software and hardware to support one or more communication links via the network 24 indirectly and/or directly. For example, interface 30 supports a communication link (e.g., wired, wireless, direct, via a LAN, via the network 24, etc.) between computing devices 14 and 16. As another example, interface 32 supports communication links (e.g., a wired connection, a wireless connection, a LAN connection, and/or any other type of connection to/from the network 24) between computing devices 12 & 16 and the DSN memory 22. As yet another example, interface 33 supports a communication link for each of the managing unit 18 and the integrity processing unit 20 to the network 24.

Computing devices 12 and 16 include a dispersed storage (DS) client module 34, which enables the computing device to dispersed storage error encode and decode data as subsequently described with reference to one or more of FIGS. 3-8. In this example embodiment, computing device 16 functions as a dispersed storage processing agent for computing device 14. In this role, computing device 16 dispersed storage error encodes and decodes data on behalf of computing device 14. With the use of dispersed storage error encoding and decoding, the DSN 10 is tolerant of a significant number of storage unit failures (the number of failures is based on parameters of the dispersed storage error encoding function) without loss of data and without the need for a redundant or backup copies of the data. Further, the DSN 10 stores data for an indefinite period of time without data loss and in a secure manner (e.g., the system is very resistant to unauthorized attempts at accessing the data).

In operation, the managing unit 18 performs DS management services. For example, the managing unit 18 establishes distributed data storage parameters (e.g., vault creation, distributed storage parameters, security parameters, billing information, user profile information, etc.) for computing devices 12-14 individually or as part of a group of user devices. As a specific example, the managing unit 18 coordinates creation of a vault (e.g., a virtual memory block associated with a portion of an overall namespace of the DSN) within the DSN memory 22 for a user device, a group of devices, or for public access and establishes per vault dispersed storage (DS) error encoding parameters for a vault. The managing unit 18 facilitates storage of DS error encoding parameters for each vault by updating registry information of the DSN 10, where the registry information may be stored in the DSN memory 22, a computing device 12-16, the managing unit 18, and/or the integrity processing unit 20.

The DSN managing unit 18 creates and stores user profile information (e.g., an access control list (ACL)) in local memory and/or within memory of the DSN memory 22. The user profile information includes authentication information, permissions, and/or the security parameters. The security parameters may include encryption/decryption scheme, one or more encryption keys, key generation scheme, and/or data encoding/decoding scheme.

The DSN managing unit 18 creates billing information for a particular user, a user group, a vault access, public vault access, etc. For instance, the DSN managing unit 18 tracks the number of times a user accesses a non-public vault and/or public vaults, which can be used to generate a per-access billing information. In another instance, the DSN managing unit 18 tracks the amount of data stored and/or retrieved by a user device and/or a user group, which can be used to generate a per-data-amount billing information.

As another example, the managing unit 18 performs network operations, network administration, and/or network maintenance. Network operations includes authenticating user data allocation requests (e.g., read and/or write requests), managing creation of vaults, establishing authentication credentials for user devices, adding/deleting components (e.g., user devices, storage units, and/or computing devices with a DS client module 34) to/from the DSN 10, and/or establishing authentication credentials for the storage units 36. Network administration includes monitoring devices and/or units for failures, maintaining vault information, determining device and/or unit activation status, determining device and/or unit loading, and/or determining any other system level operation that affects the performance level of the DSN 10. Network maintenance includes facilitating replacing, upgrading, repairing, and/or expanding a device and/or unit of the DSN 10.

The integrity processing unit 20 performs rebuilding of ‘bad’ or missing encoded data slices. At a high level, the integrity processing unit 20 performs rebuilding by periodically attempting to retrieve/list encoded data slices, and/or slice names of the encoded data slices, from the DSN memory 22. For retrieved encoded slices, they are checked for errors due to data corruption, outdated version, etc. If a slice includes an error, it is flagged as a ‘bad’ slice. For encoded data slices that were not received and/or not listed, they are flagged as missing slices. Bad and/or missing slices are subsequently rebuilt using other retrieved encoded data slices that are deemed to be good slices to produce rebuilt slices. The rebuilt slices are stored in the DSN memory 22.

FIG. 2 is a schematic block diagram of an embodiment of a computing core 26 that includes a processing module 50, a memory controller 52, main memory 54, a video graphics processing unit 55, an input/output (10) controller 56, a peripheral component interconnect (PCI) interface 58, an 10 interface module 60, at least one 10 device interface module 62, a read only memory (ROM) basic input output system (BIOS) 64, and one or more memory interface modules. The one or more memory interface module(s) includes one or more of a universal serial bus (USB) interface module 66, a host bus adapter (HBA) interface module 68, a network interface module 70, a flash interface module 72, a hard drive interface module 74, and a DSN interface module 76.

The DSN interface module 76 functions to mimic a conventional operating system (OS) file system interface (e.g., network file system (NFS), flash file system (FFS), disk file system (DFS), file transfer protocol (FTP), web-based distributed authoring and versioning (WebDAV), etc.) and/or a block memory interface (e.g., small computer system interface (SCSI), internet small computer system interface (iSCSI), etc.). The DSN interface module 76 and/or the network interface module 70 may function as one or more of the interface 30-33 of FIG. 1. Note that the 10 device interface module 62 and/or the memory interface modules 66-76 may be collectively or individually referred to as 10 ports.

FIG. 3 is a schematic block diagram of an example of dispersed storage error encoding of data. When a computing device 12 or 16 has data to store it disperse storage error encodes the data in accordance with a dispersed storage error encoding process based on dispersed storage error encoding parameters. Here, the computing device stores data object 40, which can include a file (e.g., text, video, audio, etc.), or other data arrangement. The dispersed storage error encoding parameters include an encoding function (e.g., information dispersal algorithm (IDA), Reed-Solomon, Cauchy Reed-Solomon, systematic encoding, non-systematic encoding, on-line codes, etc.), a data segmenting protocol (e.g., data segment size, fixed, variable, etc.), and per data segment encoding values. The per data segment encoding values include a total, or pillar width, number (T) of encoded data slices per encoding of a data segment i.e., in a set of encoded data slices); a decode threshold number (D) of encoded data slices of a set of encoded data slices that are needed to recover the data segment; a read threshold number (R) of encoded data slices to indicate a number of encoded data slices per set to be read from storage for decoding of the data segment; and/or a write threshold number (W) to indicate a number of encoded data slices per set that must be accurately stored before the encoded data segment is deemed to have been properly stored. The dispersed storage error encoding parameters may further include slicing information (e.g., the number of encoded data slices that will be created for each data segment) and/or slice security information (e.g., per encoded data slice encryption, compression, integrity checksum, etc.).

In the present example, Cauchy Reed-Solomon has been selected as the encoding function (a generic example is shown in FIG. 4 and a specific example is shown in FIG. 5); the data segmenting protocol is to divide the data object into fixed sized data segments; and the per data segment encoding values include: a pillar width of 5, a decode threshold of 3, a read threshold of 4, and a write threshold of 4. In accordance with the data segmenting protocol, the computing device 12 or 16 divides data object 40 into a plurality of fixed sized data segments (e.g., 1 through Y of a fixed size in range of Kilo-bytes to Tera-bytes or more). The number of data segments created is dependent of the size of the data and the data segmenting protocol.

The computing device 12 or 16 then disperse storage error encodes a data segment using the selected encoding function (e.g., Cauchy Reed-Solomon) to produce a set of encoded data slices. FIG. 4 illustrates a generic Cauchy Reed-Solomon encoding function, which includes an encoding matrix (EM), a data matrix (DM), and a coded matrix (CM). The size of the encoding matrix (EM) is dependent on the pillar width number (T) and the decode threshold number (D) of selected per data segment encoding values. To produce the data matrix (DM), the data segment is divided into a plurality of data blocks and the data blocks are arranged into D number of rows with Z data blocks per row. Note that Z is a function of the number of data blocks created from the data segment and the decode threshold number (D). The coded matrix is produced by matrix multiplying the data matrix by the encoding matrix.

FIG. 5 illustrates a specific example of Cauchy Reed-Solomon encoding with a pillar number (T) of five and decode threshold number of three. In this example, a first data segment is divided into twelve data blocks (D1-D12). The coded matrix includes five rows of coded data blocks, where the first row of X11-X14 corresponds to a first encoded data slice (EDS 1_1), the second row of X21-X24 corresponds to a second encoded data slice (EDS 2_1), the third row of X31-X34 corresponds to a third encoded data slice (EDS 3_1), the fourth row of X41-X44 corresponds to a fourth encoded data slice (EDS 4_1), and the fifth row of X51-X54 corresponds to a fifth encoded data slice (EDS 5_1). Note that the second number of the EDS designation corresponds to the data segment number.

Returning to the discussion of FIG. 3, the computing device also creates a slice name (SN) for each encoded data slice (EDS) in the set of encoded data slices. A typical format for a slice name 80 is shown in FIG. 6. As shown, the slice name (SN) 80 includes a pillar number of the encoded data slice (e.g., one of 1-T), a data segment number (e.g., one of 1-Y), a vault identifier (ID), a data object identifier (ID), and may further include revision level information of the encoded data slices. The slice name functions as, at least part of, a DSN address for the encoded data slice for storage and retrieval from the DSN memory 22.

As a result of encoding, the computing device 12 or 16 produces a plurality of sets of encoded data slices, which are provided with their respective slice names to the storage units for storage. As shown, the first set of encoded data slices includes EDS 1_1 through EDS 5_1 and the first set of slice names includes SN 1_1 through SN 5_1 and the last set of encoded data slices includes EDS 1_Y through EDS 5_Y and the last set of slice names includes SN 1_Y through SN 5_Y.

FIG. 7 is a schematic block diagram of an example of dispersed storage error decoding of a data object that was dispersed storage error encoded and stored in the example of FIG. 4. In this example, the computing device 12 or 16 retrieves from the storage units at least the decode threshold number of encoded data slices per data segment. As a specific example, the computing device retrieves a read threshold number of encoded data slices.

To recover a data segment from a decode threshold number of encoded data slices, the computing device uses a decoding function as shown in FIG. 8. As shown, the decoding function is essentially an inverse of the encoding function of FIG. 4. The coded matrix includes a decode threshold number of rows (e.g., three in this example) and the decoding matrix in an inversion of the encoding matrix that includes the corresponding rows of the coded matrix. For example, if the coded matrix includes rows 1, 2, and 4, the encoding matrix is reduced to rows 1, 2, and 4, and then inverted to produce the decoding matrix.

FIG. 9A is a schematic block diagram of another embodiment of a dispersed storage network (DSN) that includes a computing device 16 FIG. 1, the network 24 of FIG. 1, and a plurality of storage units 1-n of a DSN memory 22 of FIG. 1. The computing device 16 can include the interface 32 of FIG. 1, the computing core 26 of FIG. 1, and/or the DS client module 34 of FIG. 1. The computing device 16 can function as a dispersed storage processing agent for computing device 14 as described previously, and may hereafter be interchangeably referred to as a distributed storage and task (DST) processing unit.

The storage units 1-n can be implemented by utilizing the storage units 36 of FIG. 1, and can belong to the same DSN memory 22 or different DSN memories 22 of FIG. 1. The storage units 1-n can be implemented by utilizing any overlapping and/or non-overlapping sources. For example, the storage units can store overlapping data, can store dispersed encoded slices of the same data object, and/or perform tasks on overlapping data. The DSN functions to perform multiple arbitrary operations in a dispersed storage network utilizing a single atomic dispersed transaction. In particular, computing device 16 can generate transactions for composite operations on content of the storage devices 1-n by utilizing a DS client module 34.

Operations running on a DST processing unit utilize a CASN dispersed transaction protocol for consistent multi-source updates. In many cases, it is desirable to compose multiple operations into a single atomic update without requiring any update to be explicitly aware of the others. For example, one user may wish to update two data sources in a single transaction while another user may wish to update one data source along with one or more operations utilizing a lockless concurrency protocol, such as entries of a dispersed lockless concurrent index, in a single transaction. In order to facilitate both of these requests along with any other possible combination, the present invention functions to support composition of arbitrary operations.

To facilitate this composition, operations can be executed in a transaction context that abstracts read and write requests to the DSN memory by performing an evaluation step 905. This can correspond to an empty transaction context, and can allow individual operations to transparently read and write sources that may overlap, where later reads see writes made earlier in the transaction, for example, without actually committing any operations on the actual content in memory. The execution of the individual operations in the transaction context that abstracts read and write requests to the DSN memory can be performed locally or otherwise evaluated to determine an expected outcome of the multiple, individual operations. Performing this evaluation can include reading the current content of one or more memory locations within one or more storage units that are affected by the transaction, and can further include locally performing the operations of the transaction on the current content to generate the expected outcome.

Once the evaluation of evaluation step 905 is complete, a transaction can be created from the resulting context, indicating this expected outcome of the evaluation. The transaction can be a multi-word compare and swap (CASN) transaction and/or another compare and swap (CAS) transaction. In particular, CASN transaction can be executed against the DSN memory, which may succeed or fail with a conflict. For example, if the expected outcome of all content stored in one or more memory location, determined in the evaluation and affected by the operations of the transaction, matches the actual outcome of the content stored in one or more memory location resulting in performing the transaction, the transaction can be determined to succeed and the operations can be committed by one or more storage units or other processing systems managing the one or more memory locations. If the expected outcome of any content stored in any memory locations determined in the evaluation does not match a corresponding actual outcome of corresponding content stored in a corresponding one or more memory locations, the transaction can be determined to fail and the operations of the transaction can be reverted and/or abandoned by one or more storage units or other processing systems managing the one or more memory locations.

In the case of a failure due to a conflict, the transaction, and/or one or more individual operations of the transaction, can be re-attempted in a new context. In some embodiments, this new context can be pre-populated with the conflicting values from the preceding attempt in order to reduce the need to re-read these values in the subsequent evaluation. In particular, the actual outcomes of performing the transaction, determined in performing the CASN transaction that conflicted with the expected outcomes, can be received by the DST processing unit in performing the CASN transaction, and the DST processing unit can replace the expected outcomes of the previous evaluation to generate the expected outcomes of the new context. As another example, the current, unaltered values prior to performance of the transaction stored in the DSN, determined in attempting to perform the transaction, can replace initial values previously utilized to evaluate the composite operation, and a re-evaluation can be performed to update the CASN transaction, where new expected outcomes are determined by serially performing operations on these updated initial values.

In some embodiments, independent operations in a composite operation can execute in parallel when they are determined to be disjoint operations. Disjoint operations correspond to operations that do not overlap on any source, for example, where the content and/or memory locations affected by the operations do not overlap. Running multiple, disjoint operations in parallel can further reduce latency while still ensuring that the operations will have the intended outcome as they will not be affected by concurrently running operations already determined to be disjoint.

First, independent operations can be evaluated in parallel in isolated transaction contexts, and/or can otherwise be evaluated separately to determine. This can include evaluating each operation in their own isolated contexts by based reading the relevant content from indicated memory locations of each operation, and by locally performing the operation to independently generate expected outcomes. Determining the operations are disjoint can include determining the affected content and/or affected memory locations are independent and/or nonoverlapping. Determining the operations are not disjoint and instead overlapping operations can include determining the affected content and/or affected memory locations overlap and/or that performance of one operation otherwise affects the outcome of performance of the other operation.

If multiple independent operations are determined to be disjoint as a result of their evaluation in parallel in isolated transaction contexts, they can be designated for execution in parallel and/or otherwise can be concurrently execution. Rather than being designated to be performed in series in a single transaction, two separate transactions that include non-overlapping operations can be generated, and can be executed concurrently or otherwise in parallel as their results will not affect each other. As another example, a composite operation or transaction that includes the disjoint operations can include a designation and/or instruction to perform these disjoint operations parallel. As another example, the disjoint operations can be safely merged into composite operation for serial execution in any order. In this case, there is no need to re-evaluate the multiple operations in series, and their expected outcomes determined in their independent evaluations in the isolated contexts can be combined to indicate all expected outcomes of performing all the disjoint operations of the composite operation, where this combined expected outcome is utilized in performing the CASN transaction for the composite operation.

If multiple independently evaluated operations are determined to overlap based on evaluating these operations in the isolated contexts, these operations can be re-evaluated in series in a single context. An ordering of serial re-evaluation of the multiple operations can be determined based on timestamp, scheduling information, and/or designated ordering information of the operations. This can include re-reading the content from the relevant memory locations, and/or the reads from the isolated evaluations can be utilized again. The operations can be locally performed on current values indicated by the reads, one at a time in accordance with the determined ordering to determine the expected outcome of performing the multiple operations. This final expected outcome can be utilized in performing the CASN transaction for comparison against the actual change in content.

To compose and execute a collection of independent operations in a single transaction, a DST processing unit can initialize a composite operation from a plurality of independent operations. For example, some or all of the plurality of independent operations can be determined based on one or more user requests, received from one or more requesting entities via the network, determined by the DST processing unit based on configuration information and/or or an internal process, and/or can otherwise be determined. As illustrated in FIG. 9A, a plurality of operation requests can be received from a plurality of requesting entities 1-m via the network.

The DST processing unit can create an empty transaction context for the plurality of independent operations. This can include determining a serial ordering of the plurality of operations based on timestamp information, scheduling information and/or other determined ordering for some or all of the plurality of independent operations. The composite operation can be evaluated in the empty transaction context by performing evaluation step 905 on the plurality of operations. This can include servicing any read operations of the composite operation.

Read operations can be evaluated by first attempting to read from the transaction context. For example, this can include determining the read locally based on transactions performed thus far in the evaluation, such as a previous write operation of the composite operation that was performed on corresponding content and/or a corresponding memory location, where the outcome of the write operation was evaluated. In particular, the read can be determined based on the outcome of the corresponding content and/or a corresponding memory location thus far as a result of performing multiple update operations on determined, initial content, in the evaluation of the composite operation thus far.

If reading from the transaction context fails, for example, because no other operations of the composite operations involved writes to the corresponding content and/or memory location, the DST processing unit can next attempt to perform the read from a local cache. For example, the corresponding content may have already been retrieved recently, for example where a recency of the data stored in the local cache compares favorably to a recency threshold. In particular, in performing the current evaluation of the composite operation, a previous read of the same content and/or from the same memory location may have been already performed, and this result may be stored in the local cache if not indicated in the transaction context, for example, due to no write operations to the corresponding content and/or memory location. As another example, the transaction may have been pre-populated with conflicting values that were determined in a failed attempt to execute a prior CASN transaction for the composite operations.

If reading from the local cache also fails, for example, because no other operations of the composite operations involved operations on the corresponding content and/or memory location and/or because the corresponding content and/or memory location was not accessed recently, the DST processing unit can next attempt to perform the read against the DSN memory. This can include generating a read request for the corresponding data for transmission to one or more storage units via the network, as illustrated in FIG. 9A, and the retrieved values can be received in response from the one or more storage units for use. Subsequent operations performed on the corresponding content in the evaluation can utilize this retrieved value rather than necessitating performance of additional reads to the DSN for the same content, as the retrieved value and any updates to the retrieved value in subsequently performed operations of the evaluation will be stored as part of the transaction context.

Alternatively or in addition, this can include determining to read at least one data segment indicated in the read operation, where the data segment was previously dispersed storage error encoded by the DST processing unit or by another entity into a plurality of encoded data slices that are stored in a plurality of storage units. At least a decode threshold number of encoded data slices of the plurality of encoded data slices can be retrieved from a decode threshold number of the plurality of storage units. The data segment can be recovered by performing a dispersed storage error decode function on the received encoded data slices, for example, where the result of the evaluation of the read operation includes the data segment. Alternatively, evaluation of the read operation can include one or more individual data slices of the same and/or different data segments retrieved from the same and/or different storage unit of the DSN.

Evaluating the composite operation in the empty transaction context in performing evaluation step 905 can include servicing any write and/or delete operations of the composite operation. This can include updating the transaction context with the newly written value. For example, if the transaction context already includes a previous value, the value stored in the transaction context can be updated accordingly. If the transaction context does not already include a value for the corresponding content and/or memory location of the write and/or delete, the DST processing unit can read the corresponding value from the local cache, or from the DSN via the network if not stored in the local cache, and the current value indicated by retrieving the corresponding content can be updated locally based on the write and/or delete operation, for example, where local memory corresponding to the transaction context is updated to include the updated value of the content.

When this evaluation is complete one or more determined values of one or more memory locations accessed by and/or affected by the operations of the composite operation can be included in the transaction context and/or can otherwise be stored locally in performing the evaluation as described above. This can be utilized in transaction step 915 to create a CASN transaction from the resulting transaction context of evaluation step 905, based on the final values of content and/or memory locations determined in the evaluation and based on the plurality of operations of the composite operations.

Once created, transaction step 915 can further include executing the CASN transaction can against the DSN memory. For example, the actual updated values of the accessed and/or affected content and/or memory locations are compared to the expected final values determined in the evaluation. Transaction step 915 can include transmitting subsets of operations of the CASN transaction to corresponding storage units that store the corresponding content and/or include the corresponding memory locations. Actual values that result in performing the operations of the CASN transaction by the storage units can be determined, and a transaction step 915 can include performing a comparison of the actual values received from the storage units to the expected values locally by the computing device 16, and/or can include receiving results of individual comparisons made by each storage unit to determine whether the comparisons made by all of the storage units are favorable.

If all values are determined to match, the composite operation is completed successfully, for example, where the reads are transmitted back to requesting entities, and/or where the storage units are notified of the success. This can allow the updates to the data to be committed in the storage units, and/or allowing the corresponding memory locations to be unlocked by the storage units for other transactions. If one or more values do not match and/or if the CASN transaction is otherwise determined to fail due to conflict, the storage units can be notified that any updates should be reverted, and/or a new transaction context can be created and can be pre-populated with the conflicting values. In particular the actual values generated by performing the transaction that did not match the corresponding expected values can utilized as the expected values in the new transaction context to be compared to newly generated actual values in a subsequent run of the CASN transaction. Alternatively, the current values stored in the storage units can be utilized to pre-populate the new transaction context as initial values on which the plurality of operations are performed in the evaluation to generate updated expected values.

As illustrated in FIG. 9A, this updated transaction can be sent to the storage units, and if the actual values match the updated expected values, this second iteration of composite operation is completed successfully. If one or more values continue to not match, this process of re-populating the transaction context and re-attempting the transaction can continue any number of times. The transaction can be re-scheduled and/or abandoned in response to a threshold number of consecutive fails and/or a threshold amount of time elapsing. In some embodiments, one or more individual operations are removed from the transaction and/or the composite operation is divided into multiple, smaller composite operations in response to the transaction failing a threshold number of times.

In an example of performing the CASN transaction, a storage unit performing operations of the transaction can perform this comparison given at least one expected value of a memory location determined in evaluating the transaction, received in conjunction with the operations of the transaction targeted for the storage unit. The content will only be updated in the memory location of the storage unit and/or reads of the content will only be performed if the expected updated content matches the actual update to the content. One or more storage units performing operations of the transactions can indicate a failure, for example, for transmission to the computing device 16, if performing the update does not result in the expected updated content. For example, a failure can occur if content of one or more locations were changed by another operation, or can occur if a transaction was not able to be completed in its entirety.

In another example of performing the CASN transaction, as memory locations of multiple storage units may be updated in the composite operation, each storage unit can send the updated value that will be stored as a result of performing the operation back to the computing device 16, and can lock the corresponding memory locations. The computing device 16 can send confirmation notifications to the respective storage units in response to receiving updated content from all of the storage units that matches the expected updated content generated by performing the evaluation. The computing device can determine that failure notifications will be sent to the respective storage units in response to receiving updated content from one of the storage units that does not match the corresponding expected updated content indicated in the cached values of the new batch. If a storage unit receives a confirmation notification from the computing device, indicating that the transaction was successful across all storage units, the storage unit can complete storage of the updated value and can unlock the corresponding memory location. If a storage unit receives a failure notification, indicating that the transaction was unsuccessful in at least one storage unit, the storage unit can revert to the original content and unlock the corresponding memory location of the new batch.

In some embodiments, some or all of the plurality of operations can be determined based on determining to write a data segment. A dispersed storage error encoding function can first be locally performed on data segment for storage. At least some of the plurality of operations can correspond to a plurality of write operations to write the encoded data slices of the data segment to an information dispersal algorithm (IDA) width threshold number of storage units of the DSN. These write operations of the composite operation can be determined to be overlapping as they affect the same data segment and are thus not independent.

In some embodiments, some or all of the plurality of operations can be determined based on determining to read a data segment by retrieving at least an IDA decode threshold number of encoded data slices from at least a corresponding IDA decode threshold number of storage units, where at least some of the plurality of operations correspond to a plurality of read operations to read the IDA decode threshold number encoded data slices from the corresponding IDA decode threshold number of storage units. These read operations of the composite operation can be determined to be overlapping as they affect the same data segment and are thus not independent. The data segment can then be locally recovered by performing a dispersed storage error decoding function on the retrieved encoded data slices.

In various embodiments, a processing system of a dispersed storage and task (DST) processing unit includes at least one processor and a memory that stores operational instructions, that when executed by the at least one processor cause the processing system to initialize a composite operation from a plurality of independent operations. An empty transaction context is created by performing an evaluation of the composite operation. A multi-source compare and swap (CASN) transaction is created from resulting expected values determined by evaluating the composite operation in the empty transaction context. The CASN transaction is executed against a dispersed storage network (DSN) memory. When the execution of the CASN transaction is successful, the transaction is committed to the DSN memory. When the execution failed due to at least one conflicting value stored in the DSN memory, a new transaction context pre-populated with the at least one conflicting value is created, and an updated CASN for the composite operation that utilizes the pre-populated values of the new transaction context is executed.

FIG. 9B is a schematic block diagram of another embodiment of a dispersed storage network (DSN) that includes a computing device 16 FIG. 1, the network 24 of FIG. 1, and a plurality of storage units 1-n of a DSN memory 22 of FIG. 1. The computing device 16 can include the interface 32 of FIG. 1, the computing core 26 of FIG. 1, and/or the DS client module 34 of FIG. 1. The computing device 16 can function as a dispersed storage processing agent for computing device 14 as described previously, and may hereafter be interchangeably referred to as a distributed storage and task (DST) processing unit. Each storage unit may be implemented utilizing the storage unit 36 of FIG. 1, or by utilizing other memory devices. The storage units 1-n can be implemented by utilizing to any overlapping sources, for example, that store overlapping data, on dispersed encoded slices of the same data object, and/or perform tasks on overlapping data. The DSN functions to perform user transparent batching of multi-source updates. In particular, computing device 16 can batch updates to content of the storage devices 1-n by utilizing a DS client module 34. The computing device 16 can perform some or all of the functions discussed in conjunction with FIG. 9A, for example, by utilizing some or all of the features discussed to perform multiple arbitrary operations in a dispersed storage network utilizing a single atomic dispersed transaction as discussed in conjunction with FIG. 9A.

In existing systems, if a client issues concurrent checked updates to the same source, at least one of those updates will fail. One solution to this issue is batching, where the client groups updates together and submits a single update reflecting the result of multiple intermediate updates. This can require that the client implement some logic or configuration defining what updates can be combined together, and when and how updates should be combined. In a system that supports updating multiple sources in a single atomic operation, an update may contain different types of sources. Each type then needs its own type-specific batching logic, which can make it difficult for the client to compose multi-source updates that can be batched.

FIG. 9B illustrates an example of utilizing user-transparent batching of multi-source updates in a dispersed storage network. In such embodiments, updates can be batched without any changes in the calling code. Updates to be made to multiple sources, such as updates to content stored by a plurality of storage units 1-n, can be determined by the computing device 16, for example, by accessing a list of scheduled updates and/or by receiving requests for updates from one or more requesting entities 1-m. These updates can include a collection of independent update operations. While not depicted in FIG. 9B, a plurality of computing device 16 can communicate with network 24 to update the same or different storage units 1-n.

To execute a collection of independent operations in one or more batches, for each operation, a computing device 16 can create a new batch containing the operation, and can evaluate the operation in an empty transaction context, for example, illustrated as evaluation step 910. As used herein, evaluating the operation in an empty transaction context can include determining a current state, such as current content, of one or more memory locations that will be altered by the update operations, and can further include generating updated values of the current content that would result from performance of the operation, given the current state, for example, by performing the update operation locally on the current content determined to be currently stored. In some embodiments, this includes evaluating the result of the performance of the update operation under the assumption that no other updates would be performed first. Evaluation step 910 can include some or all of evaluation step 905 of FIG. 9A.

In some embodiments, evaluating the operation in an empty transaction context includes communicating with one or more storage units storing data corresponding to the update. For example, the computing device 16 can send a request for the data of one or more memory locations associated with the update and/or can automatically receive data of one or more memory locations. One or more storage units corresponding to the one or more memory locations can transmit the data to the computing device 16 in response. The data can include some or all of the content stored in the one or more memory locations, and/or can include an integrity value computed by the storage unit corresponding to the current state of the content stored in the one or more memory locations. The content of the data or the integrity value generated based on the content of the data can be utilized to evaluate the operation. In particular, the computing device can locally perform the update operation on copies of the content received from the storage units to determine expected updated content, corresponding to the expected resulting change in content if the update were to be performed on the data stored in the memory location. If an integrity value was received, the computing device 16 can first determine the content by performing a function on the received integrity value. The expected updated content can be stored as cached values corresponding to the update operation, and will be utilized when running one or more update operations in a batch as discussed in further detail herein. Evaluating the operation in an empty transaction context can otherwise include generating cached values for the new batch which will be utilized in running the new batch.

When evaluation of the operation is complete, the computing device 16 can determine whether the batch update can be performed, and can schedule and/or re-schedule batches as necessary. This can include performing overlap comparison step 920, which can include determining whether the new batch overlaps with any existing waiting batches, that are scheduled and/or queued to be run at a later time. Performing overlap comparison step 920 can further include determining whether the new batch overlaps with any existing running batches, that are currently being run by the computing device 16 or another entity. If neither of these conditions exist, the new batch can be run immediately.

Updates for existing waiting batches can stored in a queue as queued batches 930 or otherwise stored locally as a schedule of waiting batches, and some or all of these existing waiting batches can be compared to the new batch in overlap comparison step 920. This can include determining memory locations being updated in the operation for the new batch overlaps with memory locations to be updated in existing waiting batches; can include determining data content being updated in the new batch overlaps with memory locations to be updated in existing waiting batches; can include determining storage units being updated by the new batch overlap with storage units to be updated in existing waiting batches; can include determining a data object is being updated based on an update to an encoded data slice of the data object in the new batch, and that the data object is being updated based on an update to a different encoded data slice of the data object in existing waiting batches; and/or can include any other determined update overlap across one or more sources.

If the updates associated with one or more existing waiting batches are determined to overlap with this new batch, the batches can be merged by serially composing their operations and/or by saving the intermediate results of evaluating each operation. Serially composing their operations can include determining an ordering of the update operations to be merged and composing the operations in accordance with the ordering. The ordering can be based on timestamps of requests corresponding to the operations and/or can correspond to determined scheduling times and/or determined scheduling ordering of the operations.

In particular, the cached values of another waiting batch being merged with the new batch can corresponding to expected updated content of one or more update operations of the another waiting batch. For example, the cached values of the other waiting batch may have been generated in evaluation step 910 when the other waiting batch was created by evaluating the operation in an empty transaction context as described above. As another example, the cached values of the other waiting batch may have been generated for a merge of multiple batches in a prior merge, based on serially combining their respective operations utilizing their cached values. These cached values can indicate a final result, corresponding to the expected content that will result by applying all of the update operations of the other waiting batch. The overlapping portion of the expected content of the final result thus corresponds to what the content of an overlapping memory location is be expected to be after applying operations of the other waiting batch, and before applying one or more update operations of the new batch.

An evaluation can be performed for the update operation of the new batch based on this expected state after performance of the other scheduled updates that affect the same memory location and/or content. This can include performing evaluation step 910 by utilizing the final results of the other waiting batch rather than the current state of the memory location retrieved from the storage units. For example, if the updates of the other waiting batch are intended to be applied before operations of the new batch, the operations of the new batch can be applied locally to one or more values of overlapping portions of the final result indicated by the cached values of the other waiting batch. The result of applying the operations on the final result of the update operations of the other waiting batch can replace the cached values generated previously in performing evaluation step 910 utilizing the empty transaction context, and/or can be added to the cached values generated previously in evaluation step 910.

In this fashion, the final cached values for the other waiting batch, once merged with the new batch, can correspond an intermediate result, indicating the expected result of the update after one batch and before then new batch. This intermediate result of the merged batch can also be saved in the cached values. Furthermore, if the other waiting batch was previously merged, it may include further intermediate results determined between operations of the previously merged batches. In this case, intermediate values for some or all update operations included in a merged batch of two or more batches that may have undergone one or more previous merges themselves can be saved in the cached values for the merged batch. The intermediate results in the cached values can thus correspond to a set of expected intermediate updated values of content can be determined for performance of each update operation in the merge, and the entire set of expected intermediate updated values can be included in the cached values of the merged batch. In some embodiments, the cached values for the merged batch can include some or all of the set of intermediate values, and the set of expected intermediate updated values can be utilized in performing the entire transaction of this merged batch as discussed herein, for example, to determine which particular update operation in the merged batch first led to a conflict that caused the transaction to fail. As an optimization, the cached values of each batch included in the merge can be merged themselves into a single cache to be used when the batch is re-evaluated, for example, where the queued batches are each a single, merged batch or original batch with their own single cache of cached values. This can correspond to only the final expected result of applying all of the update operations of the merged batch.

In other embodiments, all of the update operations can be serially performed on the content determined for the new batch in evaluate the operation of the new batch in the empty transaction context in evaluation step 910, as this may reflect the most recent content. In such cases, prior cached values are discarded or ignored in generating the merged batched. In either case, the final cached values corresponds to final expected updated content that would result by applying all of the update operations that affect content and/or memory locations overlapping with those affected by operations of the new batch.

If a set of existing waiting batches exist, a proper subset of the existing waiting batches that overlap with the new batch are identified. Only the proper subset of the existing waiting batches that overlap with the new batch are selected to be merged with the new batch. In some embodiments, the entire proper subset of overlapping batches are merged with the new batch. In other embodiments, at least one of the proper subset of overlapping batches are determined to not merged with the new batch.

In some embodiments, once the proper subset of overlapping batches are identified, the remainder of the set of existing waiting batches are compared against the proper subset of overlapping batches to determine if any other batches that did not overlap with operations of the new batch will overlap with the merged batch as a result of overlapping with other operations included in the proper subset of overlapping batches. In other embodiments, this process of merging batches for all overlapping waiting batches was performed for other incoming batches, and thus, no additional batches will be identified for the merge once the proper subset of overlapping batches, as they will have already been merged previously themselves as a result of determining they overlapped.

Once the batches are merged, the new batch can be updated to correspond to this merged batch, and/or the merged batch can replace the new batch and the existing waiting batches of the merge. The merged batch can be scheduled and/or queued in scheduling step 940 by removing the one or more existing waiting batches used to generate the merge batch from the queue and/or other schedule, and/or by replacing a position of the one of the existing waiting batches used to generate the merge batch in the queue or schedule, such as a highest priority position, with the merged batch. Alternatively, one or more existing waiting batches that overlap with a merged and/or unmerged new batch, but were not included in the merge, can be re-scheduled to be run in a position that does not conflict with the running of the new batch, Similarly, the merged and/or unmerged new batch can be scheduled in a position that does not conflict with one or more overlapping existing waiting batches that were not included in the merge.

Alternatively, the merged and/or unmerged new batch can be automatically authorized to be run once confirmation that any existing running batches currently being performed in batch run step 950 have been successfully executed is received and/or determined. For example, scheduling step 940 can include indicating any currently running batches determined to conflict with the merged and/or unmerged batch in the queue, as discussed herein. For example, identifiers of conflicting running batches can be mapped to the waiting batches in the queue as scheduling information. Scheduling step 940 can further include automatically pushing these waiting batches for immediate execution via performance of batch run step 950 on these waiting batches in responses to automatically determining the corresponding conflicting running batches have successfully completed execution. In some embodiments, these waiting batches that no longer conflict with any running batches can first be re-evaluated, for example, by performing evaluation step 910, to account for any changes to the DSN resulting from the conflicting running batches that just completed, and can be immediately executed by performing batch run step 950 based on this updated re-evaluation.

Overlap comparison step 920 can further include comparing the new batch to one or more existing running batches, for example, currently being executed by the computing device 16, or determined to be being currently executed by a different computing device 16 and/or other entity of the DSN. The memory locations, storage units, data content for update, data object associated with an encoded data slice for update, or other update overlap can be similarly compared to the existing running batches. If the updates associated with an existing running batch overlap with this new batch, this new batch can become a waiting batch, for example, to be run after the running of the existing running batch is complete. This can include adding the new batch the queue of batched updates as its own batch or merged with another batch already in the queue, can include appending the new batch to the end of the queue, can include scheduling the new batch to be run immediately after running of the existing running batch is complete, and/or can otherwise include determining scheduling data for execution of the new batch at a time after one or more currently running batches determined to be conflicting is complete. In some embodiments, the new batch is only compared to the one or more existing running batches if the new batch was already determined not to overlap with the one or more existing waiting batches.

In some embodiments, comparison to existing running batches is performed in after determining whether to merge the new batch with an existing waiting batch. For example, after the new batch was merged with other waiting batches as discussed above, running batches can be compared to the merged batch. In some cases, the running of this merged batch can be scheduled at a later time is due to determining operations of the at least one existing batch and/or operations of the new batch overlap with a running batch. For example, the existing waiting batch may have previously been queued in response to determining its operations conflicted with a currently running batch that is still currently running. In some embodiments, the running of this merged batch can be immediately authorized to be run once the running batch has completed running. In other cases, the running of this merged batch can be authorized immediately due to determining operations of the at least one existing batch and/or operations of the new batch do not overlap with any running batches.

If performing overlap comparison step 920 leads to the determination that the updates of the new batch are not associated with any existing running batch or any existing waiting batches, the batch update may be scheduled to be run immediately, for example, concurrently with any other existing running batches that are determined not to conflict with the new batch. The performance of the new batch can include facilitating running of the new batch by a different computing device 16 and/or can include concurrent execution of the multiple, non-overlapping batches by the computing device 16. Alternatively, the new batch can be queued and/or scheduled to be run at a later time, for example, if there is not enough processing capacity to run the new batch at this time, and can be scheduled to be run concurrently with any existing waiting batches as there are no conflicts with the existing waiting batches.

Once this determination of whether the new batch update can be performed and/or once scheduling of the new batch and/or re-scheduling of one or more other overlapping batches is accomplished via scheduling step 940, the new batch can be run, in accordance with its scheduled placement and/or in response to determining it does not conflict with any running batches. Batches scheduled to be run can be run by performing batch run step 950. This can include determining a batch is queued and/or scheduled to be run, can include creating a transaction from the evaluated transaction context, and can include executing the transaction against the DSN memory. The transaction can be a multi-word compare and swap (CASN) transaction and/or another compare and swap (CAS) transaction. This can also include re-performing evaluation step 910, for example, if the batch to be run was just pulled from the queue of waiting batches due to a conflict with a previously running batch, to account for conflicting changes to the DSN resulting from performing of the previously run batch. Performing the re-evaluation can include utilizing the expected results utilized to perform the previously run batch that were determined to be successfully committed as the initial values for evaluating the batch. Some or all of batch run step 950 can include some or all of transaction step 915 of FIG. 9A.

For example, if the computing device 16 determines the batch update is scheduled to be performed, and the computing device 16 can create the CASN transaction and execute the CASN transaction against the DSN memory. The CASN transaction can utilize cached values for the batch determined in evaluation step 910 and/or any additional and/or updated cached values for the batch, such as intermediate and/or final results resulting from the new batch being updated to include a merge of multiple batches as discussed above. In particular, performing the CASN transaction can include performing a determination of whether performing the update in one or more memory locations of one more storage units targeted for the update results in updated content in the one or more memory locations that matches expected updated content indicated by the cached values of the one or more update operations of the new batch. This can further include comparing intermediate values generated from performance of each update operation in the batch to expected intermediate updated values generated for each step and stored in the cached values, for example, to determine which of the update operations first resulted in an unfavorable comparison that led to failure of the transaction. If the expected updated content is determined to match the actual updated content, the CASN transaction can be deemed successful and the updates of the batch can be committed. If at least some of the expected updated content is determined not to match the corresponding actual updated content, the CASN transaction can be deemed failed, and the batch re-scheduled and/or abandoned.

In an example of performing the CASN transaction, the storage unit can perform this comparison given at least one cached value received in conjunction with the update operations of the new batch. The content will only be updated in the memory location of the storage unit if the expected updated content matches the actual update to the content. One or more storage units can indicate a failure, for example, for transmission to the computing device 16, if performing the update does not result in the expected updated content. For example, a failure can occur if content of one or more locations were changed by another operation, or can occur if a transaction was not able to be completed in its entirety.

In another example of performing the CASN transaction, as memory locations of multiple storage units may be updated in the new batch, each storage unit can send the updated value that will be stored as a result of performing the operation back to the computing device, and can lock the memory location. The computing device can send confirmation notifications to the respective storage units in response to receiving updated content from all of the storage units that matches the expected updated content indicated in the cached values of the new batch. The computing device can determine that failure notifications will be sent to the respective storage units in response to receiving updated content from one of the storage units that does not match the corresponding expected updated content indicated in the cached values of the new batch. If a storage unit receives a confirmation notification from the computing device, indicating that the transaction was successful across all storage units, the storage unit can complete storage of the updated value and can unlock the corresponding memory location. If a storage unit receives a failure notification, indicating that the transaction was unsuccessful in at least one storage unit, the storage unit can revert to the original content and unlock the corresponding memory location of the new batch.

If running the CASN is successful, the original operations of the new batch are completed successfully. This can include completing the operations by utilizing saved intermediate evaluated values generated in serially composing the operations of merging the batch with the one or more existing waiting batches and/or by utilizing the original cached values if the batch was not merged. If executing the CASN transaction failed due to conflict, the batch can be re-evaluated in a new transaction context that contains the updated conflicting values. For example, running the CASN transaction can include can include comparing the cached values to updated integrity values and/or current content and/or current state of memory locations associated with a new retrieval from the storage units, and the conflict can be identified by determining the cached values compare unfavorably from corresponding retrieved values corresponding to the update. For example, some or all of the evaluation step 910 can be re-performed in response to running the scheduled batch as a CASN transaction to determine updated cached values based on any changes to the state of the memory locations and/or any changes to the content. The cached values can be updated based on the conflict identified in the re-evaluation, for example, where the integrity values and/or current content is utilized to generate the updated cached values.

The computing device 16 can further determine whether the re-evaluated batch update can be performed. Any batches waiting on the sources contained in the completed update can be re-evaluated in a new transaction context consisting of cached values from the previous evaluation, plus the updated values from the CASN transaction update. For example, one or more merges can be performed based on re-performing overlap comparison step 920 by utilizing the updated cached values, where the re-evaluated batch update is further merged with one or more other queued writing batches, such as new batches not previously evaluated or batches that did not previously overlap, but overlap as a result of the updated cached values. Re-scheduling this re-evaluated batch update can also be performed by re-performing scheduling step 940. For example, the re-evaluated batch can be scheduled to be run immediately in response to determining no overlaps exist in currently running batches and/or in existing waiting batches. Failed CASN transactions of batch run step 950 can continue to be re-evaluated, where some or all of evaluation step 910, overlap comparison step 920, scheduling step 940, and batch step 950 are reperformed any number of times on the same batch and/or a batch that is updated by being merged with other batches as a result of overlap comparison step 920, for example, until the CASN transaction of a batch that has been re-evaluated and undergone some or all of these steps multiple times has been determined to run successfully.

To ensure that such retry logic in re-scheduling batches does not result in an infinite retry loop, the CASN transaction generated by the current attempt and the previous attempt can be compared. If the cached values are the same in both updates, for example, where the updated cached values are the same as the previous cached values, evaluation is determined to be immediately failed with an error in response to determining that no progress has been made and/or in response to determining no change has been made. For example, running of the re-evaluated new batch can be foregone when the cached values are the same for the re-evaluated new batch and for the previous new batch.

As used herein, queued batches 930 can include existing waiting batches stored locally in a queue and/or can otherwise be stored with scheduling data indicating an ordering based on priority information and/or timestamp information for execution of the batched in the queued batches 930. Alternatively, as used herein, queued batches 930 can include existing waiting batches that are otherwise stored locally as an unordered set of waiting batches. For example, one or more of the queued batches 930 can be immediately executed by the computing device 16 in response to determining that execution of any existing running batches that conflict with the one or more one or more of the queued batches 930 have been completed.

In some embodiments, queued batches 930 can always include either exactly one waiting batch, which has already been evaluated to merge multiple waiting batches as discussed herein, but is not currently being executed due to a conflict with an existing running batch; or zero queued batches, because any new batches were immediately executed due to no conflicts with any existing running batches. In particular, the computing device 16 can determine to always merge all incoming batches waiting in the queue into a single batch that includes all the waiting operations, regardless of whether or not they are determined to conflict. The computing device 16 can automatically initiate execution of the one waiting batch once the one or more conflicting batches currently being run have been determined to be committed and/or otherwise completed.

Alternatively, in some embodiments, the queued batches 930 can include multiple existing waiting batches if and only if the multiple existing waiting batches do not conflict with each other. In particular, when the new batch is determined to conflict with the existing running batch but not the existing waiting batch, the new batch is separately included in the queue of waiting batches. At any given time, the queued batches 930 can include multiple existing waiting batches that all do not conflict with each other, but all conflict with a currently running batch. For example, execution of all of these independent, non-overlapping batches in the queue can be executed, for example, concurrently and/or in parallel, once executing of a single, currently running batch is determined to be completed. Alternatively, if multiple batches are currently running, only ones of the multiple existing waiting batches that conflict with only one existing running batch that has just completed, or a proper subset of existing running batches that have all been determined to complete, can be concurrently executed. The other ones of the multiple existing waiting batches can remain in the queue until their respective existing running batches have been completed.

Automatically initiating execution of waiting batches in response to determining the conflicting running batches have completed can include re-evaluating the batch to account for conflicting changes made to the DSN due to completion of the conflicting, currently run batch. This can include reperforming evaluation step 910, can include fetching one or more current values from the DSN, and/or can include utilizing the expected values of the transaction that just completed that conflicted with the waiting batch, as success of the transaction indicates the expected values matched the actual results of the transaction. Batch run step 950 can be performed on these waiting batches pushed for execution by utilizing the updated expected values of this re-evaluation. For example, the expected values of the previously run transaction can be utilized as initial values, where the operations of the waiting batch are performed serially on these initial values, to generated updated expected values to be utilized in execution of the waiting batch.

The DSN can further include the user device 14 and/or additional computing devices 16 of FIG. 1. For example, one or more requesting entities 1-m can correspond to user device 14 and/or other computing devices 16. The user device 14 and/or additional computing devices 16 of FIG. 1, such as the computing device 16 depicted in FIG. 9B, can be operable to send access requests to the storage units via network 24. The access requests can include data slices to be written to storage. One or more computing devices 16 and/or user devices 14 can generate the data slices for storage by performing a dispersed storage error encoding function on a set of data segments for storage, where the encoded data slices of a data segment are transmitted to an information dispersal algorithm (IDA) width threshold number of storage units. Updates to the written data and/or tasks performed on the written data can be performed as the update operations scheduled as batch updates as described in conjunction with FIG. 9B. One or more computing devices 16 and/or user devices 14, such as the computing device 16 depicted in FIG. 9B, can recover an original or updated data segment by retrieving at least an IDA decode threshold number of encoded data slices from at least a corresponding IDA decode threshold number of storage units, and by performing a dispersed storage error decoding function on the received encoded data slices.

In various embodiments, a processing system of a DST processing unit, or other computing device of the DSN, includes at least one processor and a memory that stores operational instructions, that when executed by the at least one processor cause the processing system to perform operations for batching updates in the DSN. In particular, for each one update operation of a plurality of update operations, a new batch update containing the one update operation is created. The one update operation is evaluated in an empty transaction context to generate cached values. The DST processing unit determines one of the following: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch; a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch; or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch. When it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch, the new batch is updated by merging the at least one existing waiting batches with the new batch. Performing this merge includes serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch, and further includes saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation. When it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch, the new batch is included in the queue of waiting batches. When it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch, immediate running of the new batch is authorized. The new batch is run by creating a CASN transaction from its evaluated transaction context that includes the cached values. The CASN transaction can be executed against the DSN memory.

While FIG. 9B depicts a computing device 16 performing batch updates to storage units 1-n, a storage unit can utilize DS client module and/or other processor and memory to perform evaluation step 910, overlap comparison step 920, scheduling step 940, and/or batch run step 950 for its own set of memory devices within the storage unit and/or managed by the storage unit, for example, utilizing its own queued batches 930. The updates may have been received the same or different computing device 16. This embodiment can be utilized, for example, if the updates to the storage unit are determined not to overlap with updates to other storage units, for example, by the storage unit itself or by computing device 16. Alternatively, one or more other elements of the DSN as described herein can utilize a processor and memory the perform evaluation step 910, overlap comparison step 920, scheduling step 940, and/or batch run step 950 to perform update operations on the storage units 1-n or on different sources with memory devices storing overlapping data.

FIG. 10 is a flowchart illustrating an example of batching updates in a DSN. In particular, a method is presented for use in association with one or more functions and features described in conjunction with FIGS. 1-9, for execution by a dispersed storage and task (DST) processing unit that includes a processor or via another processing system or computing device of a dispersed storage network that includes at least one processor and memory that stores instruction that configure the processor or processors to perform the steps described below.

Steps 1002-1014 of FIG. 10 can be performed for each update operation of a plurality of update operations, for example where steps 1002-1014 are repeated for every update operation. Step 1002 includes creating a new batch update containing the one update operation for one update operation of the plurality of update operations. Step 1004 includes evaluating the one update operation in an empty transaction context to generate cached values. Step 1006 includes determining one of: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch, a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch, or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch. For example, the at least one existing waiting batch and/or the at least one existing running batch can correspond to batches created by previous execution of the method for previous update operations of the plurality of update operations. In some embodiments, based on this determination, only one of step 1008, 1010, and 1012 is selected to be performed. In some embodiments, both step 1008 and 1010 are performed if it is determined that the new batch overlaps with the at least one existing waiting batches, and that the new batch, in its original form and/or resulting from the merge of step 1008, also overlaps with the at least one existing running batches.

Step 1008 includes updating the new batch by merging the at least one existing waiting batches with the new batch when it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch. This update of the new batch includes serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch, and further includes saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation. Saving the intermediate results can include updating the cached values based on the intermediate results. Updating the new batch includes replacing the at least one existing waiting batches in the queue of waiting batches with an updated new batch resulting from merging the at least one existing waiting batches with the new batch. In some embodiments, the at least one existing waiting batch and/or the at least one existing running batch can also correspond to multiple batches that were previously merged by performing step 1008.

Step 1010 involves adding the new batch to the queue of waiting batches, and/or otherwise scheduling the new batch to be run at a time after the at least one existing running that overlaps with the new batch has competed running, when it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch. Step 1012 includes authorizing immediate running of the new batch when it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch. Step 1014 includes running the new batch by creating a multi-word compare and swap (CASN) transaction from its evaluated transaction context that includes the cached values. Running the new batch, if a merge was performed in step 1008, can further include utilizing the intermediate results generated in step 1008.

The method can further include running the queue of waiting batches in accordance with an ordering of the queue of waiting batches. The new batch can be run in accordance its ordering in the queue of waiting batches, and each one of the queue of waiting batches is run by creating a CASN transaction from an evaluated transaction context of the each one of the queue of waiting batches that includes cached values of the each one of the queue of waiting batches.

Alternatively, ones of the batches in the queue of waiting batches can be immediately authorized for execution in response to execution of any corresponding existing running batches having been determined to be complete, where the any corresponding existing running batches were determined to conflict with the ones of the batches, which resulted in their inclusion in the queue. In various embodiments, the at least one existing waiting batch was included in the queue of waiting batches in response to determining that the subset of the plurality of update operations associated with the at least one existing running batch overlapped with the subset of the plurality of update operations associated with the at least one existing waiting batch. At a time after the new batch was updated by replacing the at least one existing waiting batches in the queue of waiting batches with the updated new batch resulting from merging the at least one existing waiting batches with the new batch, the method can include automatically re-evaluating the new batch to generate updated cached values for the new batch, in response to determining the at least one existing running batch has completed. Re-evaluating the new batch can include utilizing second cached values that were utilized to execute another CASN transaction corresponding to the existing running batch, for example, where the second cached values were generated based on evaluating the existing running batch to create the another CASN transaction. The method can further include authorizing immediate running of the new batch by creating the CASN transaction, utilizing the updated cached values.

In various embodiments, the new batch is included in the queue of waiting batches in its original form and/or as a merged batch as a result of performance of step 1008. The method can further include determining, for another batch created for another update operation of the plurality of update operations that is processed after the new batch, that the one update operation of the new batch in the queue of waiting batches overlaps with the another batch, for example, in performance of step 1006. Step 1008 can be performed on the another batch by updating the another batch to generate a merged batch by merging the new batch with the another batch, in response to determining that the one update operation of the new batch overlaps with the another batch. This can include serially composing the one update operation of the new batch, and any other update operations of the new batch due to a previous merge of the new batch in performance of step 1008, with the another update operation of the another batch. This can further include saving second intermediate results of evaluating each of the one update operation and the another update operation by generating updated cached values of the another batch to the second intermediate results. The new batch in the queue of waiting batches can be replaced with the merged batch resulting from merging the another batch with the new batch. Once this newly merged batch is scheduled to be run, this merged batch can be run by creating a second CASN transaction from an evaluated transaction context of the merged batch that includes the updated cached values of the another batch. This accomplishes the running of the new batch, as its operations are included in this merged batch of the new batch and the another batch.

In various embodiments, running the new batch includes executing the CASN transaction against a Dispersed Storage Network (DSN) memory that includes a plurality of storage units, and further includes facilitating updates to overlapping data stored in at least two of the plurality of storage units. In various embodiments, the plurality of update operations includes updates to data stored in a plurality of storage units. It is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch in response to determining that the subset of the plurality of update operations include an update to a portion of a data object stored in one of the plurality of storage units, and that the new batch includes an update to another portion of the data object stored in another one of the plurality of storage units.

In various embodiments, the plurality of update operations includes updates to a plurality of set of encoded data slices. Each set of encoded data slices is associated with one of a plurality of data segments, where each one of the plurality of data segments was dispersed storage error encoded to produce a corresponding set of encoded data slices for storage in a set of storage units. It is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch in response to determining that the subset of the plurality of update operations includes an update to one encoded data slice of a set of encoded data slices corresponding to a data segment, and that the new batch includes an update to another encoded data slice of the same set of encoded data slices corresponding to the same data segment.

In various embodiments, the running of the new batch is successful, and the one update operation is completed successfully with the intermediate values saved as a result of merging the at least one existing waiting batches with the new batch. In other embodiments, running of the new batch is not successful and is instead determined to fail. In such embodiments, the method further includes generating a re-evaluated new batch by re-evaluating the new batch in a new transaction context to generate updated cached values in response to determining running the new batch failed due to a conflict. The re-evaluated new batch is run by creating an updated CASN transaction from the new transaction context that includes the updated cached values.

In various embodiments, the new batch includes at least one update to data stored in at least one storage unit. Determining running the new batch failed due to a conflict includes determining that content of the data compares unfavorably to the cached values as a result of utilizing the CASN transaction, and where re-evaluating the new batch in the new transaction context includes utilizing the content of the data. In some embodiments, the cached values of the CASN transaction and the updated cached values of the updated CASN transaction are compared. Running of the re-evaluated new batch is performed when the updated cached values of the CASN transaction and the cached values of the updated CASN transaction indicate a change from the cached values to the updated cached values. Running of the re-evaluated new batch is foregone when the updated cached values of the CASN transaction and the cached values of the updated CASN transaction indicate no change from the cached values to the updated cached values. This can include abandoning of the new batch entirely, and can include sending update failure notifications to any requesting entities that that sent update operations included in the new batch.

In other embodiments, the method can include scheduling to re-evaluate the new batch again at a later time, for example, at a pre-determined time interval, in hopes that the updated cached values will change at the later time in the re-evaluation in the transaction context at the later time. For example, the method can include re-scheduling running of the new batch when the new batch fails due to a conflict by adding the new batch to the queue of waiting batches, where the re-evaluated new batch is run in accordance with the queue of waiting batches.

In various embodiments, some or all of the steps 1004-1014 are repeated for the re-evaluated new batch, and can continue to be repeated for this same new batch, and/or a new batch that has undergone one or more merges, any number of times until the running of the new batch is successful, or alternatively, until there is no change between the cached values of the previous re-evaluation and the updated cached values of the most recent re-evaluation.

Step 1006 can be re-performed on the same new batch for one or more re-evaluations. Thus, the method can further include determining one of: a second subset of the plurality of update operations associated with at least one second existing waiting batches in the queue of waiting batches overlaps with the re-evaluated new batch, a second subset of the plurality of update operations associated with at least one second existing running batch overlap with the re-evaluated new batch, or operations of any second existing waiting batches do not overlap with the re-evaluated new batch and operations of any second existing running batches do not overlap with the re-evaluated new batch.

The second existing waiting batches can be the same as some or all of the existing waiting batches for a previous iteration of step 1006 for the same, new batch, and/or can include different waiting batches if new batches were included to the queue of waiting batches and/or if some of the waiting batches were run in iterating through one or more re-evaluations for the new batch. Similarly, the second existing running batches can be the same as some or all of the existing running batches for a previous iteration of step 1006 for the same, new batch, and/or can include different running batches if new batches are being run and/or if some of the running batches were already completed in iterating through one or more re-evaluations for the new batch.

Step 1008 can be re-performed on the same new batch for one or more re-evaluations. Thus, the method can further include updating the re-evaluated new batch by merging the at least one second existing waiting batches with the re-evaluated new batch when it is determined that the second subset of the plurality of update operations associated with the at least one second existing waiting batches in the queue of waiting batches overlaps with the re-evaluated new batch. This can include serially composing the second subset of the plurality of update operations of the at least one second existing waiting batches with a set of update operations of the re-evaluated new batch; and can further include saving second intermediate results of evaluating each of the second subset of the plurality of update operations and the set of update operations of the re-evaluated new batch by further updating the updated cached values to include the second intermediate results. The at least one second existing waiting batches in the queue of waiting batches with an updated re-evaluated new batch resulting from merging the at least one second existing waiting batches with the re-evaluated new batch. Thus, the new batch, over one or more iterations of re-evaluations, can undergo multiple merges with waiting batches. For example, the set of update operations can include the subset of the plurality of update operations of the at least one existing waiting batches and the one update operation of the new batch as a result of merging the new batch with the at least one existing waiting batch to update the new batch prior to running the new batch, and prior to generating the re-evaluated new batch in response to determining running the new batch failed due to the conflict.

Step 1010 can be re-performed on the same new batch for one or more re-evaluations. Thus, the method can further involve including the re-evaluated new batch in the queue of waiting batches or otherwise scheduling the running of the re-evaluated new batch at a time after the at least one second existing running batch has completed running, when it is determined that the second subset of the plurality of update operations associated with the at least one second existing running batch overlap with the re-evaluated new batch.

Step 1012 can be re-performed on the same new batch for one or more re-evaluations. Thus, the method can further include, when it is determined that the operations of the any second existing waiting batches do not overlap with the re-evaluated new batch and that operations of the any second existing running batches do not overlap with the re-evaluated new batch, authorizing immediate running of the re-evaluated new batch.

In various embodiments, a non-transitory computer readable storage medium includes at least one memory section that stores operational instructions that, when executed by a processing system of a dispersed storage network (DSN) that includes a processor and a memory, causes the processing system to, for each one update operation of a plurality of update operations, create a new batch update containing the one update operation. The one update operation is evaluated in an empty transaction context to generate cached values. The dispersed storage and task (DST) processing unit determines one of the following: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch; a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch; or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch. When it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch, the new batch is updated by merging the at least one existing waiting batches with the new batch. Performing this merge includes serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch, and further includes saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation. When it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch, the new batch is included in the queue of waiting batches. When it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch, immediate running of the new batch is authorized. The new batch is run by creating a CASN transaction from its evaluated transaction context that includes the cached values. The CASN transaction can be executed against the DSN memory.

FIG. 11 presents an illustrative cloud computing environment 2050. As shown, cloud computing environment 2050 includes one or more cloud computing nodes 2010 with which local computing devices used by cloud consumers, such as, for example, personal digital assistant (PDA) or cellular telephone 2054A, desktop computer 2054B, laptop computer 2054C, and/or automobile computer system 2054N may communicate. Nodes 2010 may communicate with one another. They may be grouped (not shown) physically or virtually, in one or more networks, such as Private, Community, Public, or Hybrid clouds as described hereinabove, or a combination thereof. This allows cloud computing environment 2050 to offer infrastructure, platforms and/or software as services for which a cloud consumer does not need to maintain resources on a local computing device. It is understood that the types of computing devices 2054A-N shown in FIG. 11 are intended to be illustrative only and that computing nodes 2010 and cloud computing environment 2050 can communicate with any type of computerized device over any type of network and/or network addressable connection (e.g., using a web browser).

It is to be understood that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.

Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.

Characteristics are as follows:

On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.

Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).

Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).

Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.

Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both the provider and consumer of the utilized service.

Service Models are as follows:

Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.

Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.

Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).

Deployment Models are as follows:

Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.

Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.

Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.

Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).

A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.

In various embodiments, the DSN can be implemented by utilizing the cloud computing environment 2050 and/or can communicate with cloud computing environment 2050. Alternatively or in addition, the plurality of computing devices 12-16 of FIG. 1, the managing unit of FIG. 1, and/or the integrity processing unit 20 of FIG. 1, and/or storage units 36 can be implemented by utilizing cloud computing nodes 2010, personal digital assistant (PDA) or cellular telephone 2054A, desktop computer 2054B, laptop computer 2054C, and/or automobile computer system 2054N. In various embodiments, the cloud computing nodes 2010, personal digital assistant (PDA) or cellular telephone 2054A, desktop computer 2054B, laptop computer 2054C, and/or automobile computer system 2054N can communicate by utilizing network 24 of FIG. 1.

Referring now to FIG. 12, a set of functional abstraction layers provided by cloud computing environment 2050 (FIG. 11) is shown. It should be understood in advance that the components, layers, and functions shown in FIG. 12 are intended to be illustrative only and embodiments of the invention are not limited thereto. As depicted, the following layers and corresponding functions are provided:

Hardware and software layer 2060 includes hardware and software components. Examples of hardware components include: mainframes 2061; RISC (Reduced Instruction Set Computer) architecture based servers 2062; servers 2063; blade servers 2064; storage devices 2065; and networks and networking components 2066. In some embodiments, software components include network application server software 2067 and database software 2068. In some embodiments, one or more hardware components can be implemented by utilizing the computing device 2300 of FIG. 13.

Virtualization layer 2070 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 2071; virtual storage 2072; virtual networks 2073, including virtual private networks; virtual applications and operating systems 2074; and virtual clients 2075.

In one example, management layer 2080 may provide the functions described below. Resource provisioning 2081 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 2082 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 2083 provides access to the cloud computing environment for consumers and system administrators. Service level management 2084 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 2085 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.

Workloads layer 2090 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 2091; software development and lifecycle management 2092; virtual classroom education delivery 2093; data analytics processing 2094; transaction processing 2095; and update batching system 2096. In some embodiments, the DSN 10 can utilize utilizing the cloud computing environment 2050, for example, by utilizing the update batching system 2096 of the workloads layer 2090 of FIG. 12 to perform the update batching in the DSN as described in conjunction with FIGS. 9-10, where one or more computing devices 12-16 of FIG. 1 communicate with the network via a corresponding node 2010 of the cloud computing environment 2050.

FIG. 13 depicts a block diagram of components of a computing device 2300, which can be utilized to implement some or all of the cloud computing nodes 2010, some or all of the computing devices 54A-N of FIG. 11, and/or to implement other computing devices described herein in accordance with an embodiment of the present invention. The computing device 2300 can be utilized to implement some or all of the plurality of computing devices 12-16 of FIG. 1, the DS client module 34 of FIG. 1, the managing unit of FIG. 1, the integrity processing unit 20 of FIG. 1, and/or storage units 36 of FIG. 1. For example the computing core 26 of FIG. 2 can be implemented by utilizing the computing device 2300. It should be appreciated that FIG. 13 provides only an illustration of one implementation and does not imply any limitations with regard to the environments in which different embodiments may be implemented. Many modifications to the depicted environment may be made.

Computing device 2300 can include one or more processors 2302, one or more computer-readable RAMs 2304, one or more computer-readable ROMs 2306, one or more computer readable storage media 2308, device drivers 2312, read/write drive or interface 2314, and network adapter or interface 2316, all interconnected over a communications fabric 2318. Communications fabric 2318 can be implemented with any architecture designed for passing data and/or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within the system.

One or more operating systems 2310 and/or application programs 2311, such as network application server software 2067 and database software 2068, are stored on one or more of the computer readable storage media 2308 for execution by one or more of the processors 2302 via one or more of the respective RAMs 2304 (which typically include cache memory). In the illustrated embodiment, each of the computer readable storage media 2308 can be a magnetic disk storage device of an internal hard drive, CD-ROM, DVD, memory stick, magnetic tape, magnetic disk, optical disk, a semiconductor storage device such as RAM, ROM, EPROM, flash memory, or any other computer readable storage media that can store a computer program and digital information, in accordance with embodiments of the invention.

Computing device 2300 can also include a R/W drive or interface 2314 to read from and write to one or more portable computer readable storage media 2326. Application programs 2311 on computing devices 2300 can be stored on one or more of the portable computer readable storage media 2326, read via the respective R/W drive or interface 2314 and loaded into the respective computer readable storage media 2308.

Computing device 2300 can also include a network adapter or interface 2316, such as a TCP/IP adapter card or wireless communication adapter. Application programs 2311 on computing devices 2054A-N can be downloaded to the computing device from an external computer or external storage device via a network (for example, the Internet, a local area network or other wide area networks or wireless networks) and network adapter or interface 2316. From the network adapter or interface 2316, the programs may be loaded into the computer readable storage media 2308. The network may comprise copper wires, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers.

Computing device 2300 can also include a display screen 2320, a keyboard or keypad 2322, and a computer mouse or touchpad 2324. Device drivers 2312 interface to display screen 2320 for imaging, to keyboard or keypad 2322, to computer mouse or touchpad 2324, and/or to display screen 2320 for pressure sensing of alphanumeric character entry and user selections. The device drivers 2312, R/W drive or interface 2314, and network adapter or interface 2316 can comprise hardware and software stored in computer readable storage media 2308 and/or ROM 2306.

It is noted that terminologies as may be used herein such as bit stream, stream, signal sequence, etc. (or their equivalents) have been used interchangeably to describe digital information whose content corresponds to any of a number of desired types (e.g., data, video, speech, text, graphics, audio, etc. any of which may generally be referred to as ‘data’).

As may be used herein, the terms “substantially” and “approximately” provides an industry-accepted tolerance for its corresponding term and/or relativity between items. For some industries, an industry-accepted tolerance is less than one percent and, for other industries, the industry-accepted tolerance is 10 percent or more. Industry-accepted tolerances correspond to, but are not limited to, component values, integrated circuit process variations, temperature variations, rise and fall times, thermal noise, dimensions, signaling errors, dropped packets, temperatures, pressures, material compositions, and/or performance metrics. Within an industry, tolerance variances of accepted tolerances may be more or less than a percentage level (e.g., dimension tolerance of less than +/−1%).

As may also be used herein, the term(s) “configured to”, “operably coupled to”, “coupled to”, and/or “coupling” includes direct coupling between items and/or indirect coupling between items via an intervening item (e.g., an item includes, but is not limited to, a component, an element, a circuit, and/or a module) where, for an example of indirect coupling, the intervening item does not modify the information of a signal but may adjust its current level, voltage level, and/or power level. As may further be used herein, inferred coupling (i.e., where one element is coupled to another element by inference) includes direct and indirect coupling between two items in the same manner as “coupled to”.

As may even further be used herein, the term “configured to”, “operable to”, “coupled to”, or “operably coupled to” indicates that an item includes one or more of power connections, input(s), output(s), etc., to perform, when activated, one or more its corresponding functions and may further include inferred coupling to one or more other items. As may still further be used herein, the term “associated with”, includes direct and/or indirect coupling of separate items and/or one item being embedded within another item.

As may be used herein, the term “compares favorably”, indicates that a comparison between two or more items, signals, etc., provides a desired relationship. For example, when the desired relationship is that signal 1 has a greater magnitude than signal 2, a favorable comparison may be achieved when the magnitude of signal 1 is greater than that of signal 2 or when the magnitude of signal 2 is less than that of signal 1. As may be used herein, the term “compares unfavorably”, indicates that a comparison between two or more items, signals, etc., fails to provide the desired relationship.

As may be used herein, one or more claims may include, in a specific form of this generic form, the phrase “at least one of a, b, and c” or of this generic form “at least one of a, b, or c”, with more or less elements than “a”, “b”, and “c”. In either phrasing, the phrases are to be interpreted identically. In particular, “at least one of a, b, and c” is equivalent to “at least one of a, b, or c” and shall mean a, b, and/or c. As an example, it means: “a” only, “b” only, “c” only, “a” and “b”, “a” and “c”, “b” and “c”, and/or “a”, “b”, and “c”.

As may also be used herein, the terms “processing system”, “processing module”, “processing circuit”, “processor”, and/or “processing unit” may be a single processing device or a plurality of processing devices. Such a processing device may be a microprocessor, micro-controller, digital signal processor, microcomputer, central processing unit, field programmable gate array, programmable logic device, state machine, logic circuitry, analog circuitry, digital circuitry, and/or any device that manipulates signals (analog and/or digital) based on hard coding of the circuitry and/or operational instructions. The processing module, module, processing circuit, processing system, and/or processing unit may be, or further include, memory and/or an integrated memory element, which may be a single memory device, a plurality of memory devices, and/or embedded circuitry of another processing module, module, processing circuit, processing system, and/or processing unit. Such a memory device may be a read-only memory, random access memory, volatile memory, non-volatile memory, static memory, dynamic memory, flash memory, cache memory, and/or any device that stores digital information. Note that if the processing module, module, processing circuit, processing system, and/or processing unit includes more than one processing device, the processing devices may be centrally located (e.g., directly coupled together via a wired and/or wireless bus structure) or may be distributedly located (e.g., cloud computing via indirect coupling via a local area network and/or a wide area network). Further note that if the processing module, module, processing circuit, processing system, and/or processing unit implements one or more of its functions via a state machine, analog circuitry, digital circuitry, and/or logic circuitry, the memory and/or memory element storing the corresponding operational instructions may be embedded within, or external to, the circuitry comprising the state machine, analog circuitry, digital circuitry, and/or logic circuitry. Still further note that, the memory element may store, and the processing module, module, processing circuit, processing system, and/or processing unit executes, hard coded and/or operational instructions corresponding to at least some of the steps and/or functions illustrated in one or more of the Figures. Such a memory device or memory element can be included in an article of manufacture.

One or more embodiments have been described above with the aid of method steps illustrating the performance of specified functions and relationships thereof. The boundaries and sequence of these functional building blocks and method steps have been arbitrarily defined herein for convenience of description. Alternate boundaries and sequences can be defined so long as the specified functions and relationships are appropriately performed. Any such alternate boundaries or sequences are thus within the scope and spirit of the claims. Further, the boundaries of these functional building blocks have been arbitrarily defined for convenience of description. Alternate boundaries could be defined as long as the certain significant functions are appropriately performed. Similarly, flow diagram blocks may also have been arbitrarily defined herein to illustrate certain significant functionality.

To the extent used, the flow diagram block boundaries and sequence could have been defined otherwise and still perform the certain significant functionality. Such alternate definitions of both functional building blocks and flow diagram blocks and sequences are thus within the scope and spirit of the claims. One of average skill in the art will also recognize that the functional building blocks, and other illustrative blocks, modules and components herein, can be implemented as illustrated or by discrete components, application specific integrated circuits, processors executing appropriate software and the like or any combination thereof.

In addition, a flow diagram may include a “start” and/or “continue” indication. The “start” and “continue” indications reflect that the steps presented can optionally be incorporated in or otherwise used in conjunction with other routines. In this context, “start” indicates the beginning of the first step presented and may be preceded by other activities not specifically shown. Further, the “continue” indication reflects that the steps presented may be performed multiple times and/or may be succeeded by other activities not specifically shown. Further, while a flow diagram indicates a particular ordering of steps, other orderings are likewise possible provided that the principles of causality are maintained.

The one or more embodiments are used herein to illustrate one or more aspects, one or more features, one or more concepts, and/or one or more examples. A physical embodiment of an apparatus, an article of manufacture, a machine, and/or of a process may include one or more of the aspects, features, concepts, examples, etc. described with reference to one or more of the embodiments discussed herein. Further, from figure to figure, the embodiments may incorporate the same or similarly named functions, steps, modules, etc. that may use the same or different reference numbers and, as such, the functions, steps, modules, etc. may be the same or similar functions, steps, modules, etc. or different ones.

While the transistors in the above described figure(s) is/are shown as field effect transistors (FETs), as one of ordinary skill in the art will appreciate, the transistors may be implemented using any type of transistor structure including, but not limited to, bipolar, metal oxide semiconductor field effect transistors (MOSFET), N-well transistors, P-well transistors, enhancement mode, depletion mode, and zero voltage threshold (VT) transistors.

Unless specifically stated to the contra, signals to, from, and/or between elements in a figure of any of the figures presented herein may be analog or digital, continuous time or discrete time, and single-ended or differential. For instance, if a signal path is shown as a single-ended path, it also represents a differential signal path. Similarly, if a signal path is shown as a differential path, it also represents a single-ended signal path. While one or more particular architectures are described herein, other architectures can likewise be implemented that use one or more data buses not expressly shown, direct connectivity between elements, and/or indirect coupling between other elements as recognized by one of average skill in the art.

The term “module” is used in the description of one or more of the embodiments. A module implements one or more functions via a device such as a processor or other processing device or other hardware that may include or operate in association with a memory that stores operational instructions. A module may operate independently and/or in conjunction with software and/or firmware. As also used herein, a module may contain one or more sub-modules, each of which may be one or more modules.

As may further be used herein, a computer readable memory includes one or more memory elements. A memory element may be a separate memory device, multiple memory devices, or a set of memory locations within a memory device. Such a memory device may be a read-only memory, random access memory, volatile memory, non-volatile memory, static memory, dynamic memory, flash memory, cache memory, and/or any device that stores digital information. The memory device may be in a form a solid-state memory, a hard drive memory, cloud memory, thumb drive, server memory, computing device memory, and/or other physical medium for storing digital information.

While particular combinations of various functions and features of the one or more embodiments have been expressly described herein, other combinations of these features and functions are likewise possible. The present disclosure is not limited by the particular examples disclosed herein and expressly incorporates these other combinations. 

What is claimed is:
 1. A method for execution by a dispersed storage and task (DST) processing unit that includes a processor, the method comprises: for each one update operation of a plurality of update operations, creating a new batch update containing the one update operation, wherein the update operations include updating content of data stored by a plurality of storage units; evaluating the one update operation in an empty transaction context to generate cached values; determining one of: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch, a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch, or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch; when it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch, updating the new batch by merging the at least one existing waiting batches with the new batch by: serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch; and saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation by updating the cached values based on the intermediate results; when it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch, including the new batch in the queue of waiting batches; when it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch, authorizing immediate running of the new batch; and running the new batch by creating a multi-word compare and swap (CASN) transaction from its evaluated transaction context that includes the cached values.
 2. The method of claim 1, wherein saving the intermediate results includes updating the cached values based on the intermediate results, and wherein running the new batch resulting from merging the at least one existing waiting batches with the new batch includes utilizing the intermediate results.
 3. The method of claim 1, wherein updating the new batch includes replacing the at least one existing waiting batches in the queue of waiting batches with an updated new batch resulting from merging the at least one existing waiting batches with the new batch.
 4. The method of claim 3, wherein the at least one existing waiting batch was included in the queue of waiting batches in response to determining that the subset of the plurality of update operations associated with the at least one existing running batch overlapped with the subset of the plurality of update operations associated with the at least one existing waiting batch, further comprising, at a time after the new batch was updated by replacing the at least one existing waiting batches in the queue of waiting batches with the updated new batch resulting from merging the at least one existing waiting batches with the new batch: automatically re-evaluating the new batch to generate updated cached values for the new batch, in response to determining the at least one existing running batch has completed, wherein re-evaluating the new batch includes utilizing second cached values that were utilized to execute another CASN transaction corresponding to the existing running batch; and authorizing immediate running of the new batch by creating the CASN transaction that utilizes the updated cached values.
 5. The method of claim 1, wherein the new batch is included in the queue of waiting batches, further comprising: determining, for another batch created for another update operation of the plurality of update operations that is processed after the new batch, that the one update operation of the new batch in the queue of waiting batches overlaps with the another batch; and updating the another batch to generate a merged batch by merging the new batch with the another batch, in response to determining that the one update operation of the new batch overlaps with the another batch, by: serially composing the one update operation of the new batch with the another update operation of the another batch; saving second intermediate results of evaluating each of the one update operation and the another update operation by generating updated cached values of the another batch to include the second intermediate results; replacing the new batch in the queue of waiting batches with the merged batch resulting from merging the another batch with the new batch; and running the merged batch by creating a second CASN transaction from an evaluated transaction context of the merged batch that includes the updated cached values of the another batch, wherein the running of the new batch is accomplished by the running the merged batch.
 6. The method of claim 1, wherein the running of the new batch is successful, and wherein the one update operation is completed successfully with the intermediate results that were saved as a result of merging the at least one existing waiting batches with the new batch.
 7. The method of claim 1, further comprising: generating a re-evaluated new batch by re-evaluating the new batch in a new transaction context to generate updated cached values in response to determining running the new batch failed due to a conflict; and running the re-evaluated new batch by creating an updated CASN transaction from the new transaction context that includes the updated cached values.
 8. The method of claim 7, wherein the new batch includes at least one update to data stored in at least one storage unit, and wherein determining running the new batch failed due to a conflict includes determining that content of the data compares unfavorably to the cached values as a result of utilizing the CASN transaction, and wherein re-evaluating the new batch in the new transaction context includes utilizing the content of the data.
 9. The method of claim 7, wherein the cached values of the CASN transaction and the updated cached values of the updated CASN transaction are compared, wherein running of the re-evaluated new batch is performed when the updated cached values of the CASN transaction and the cached values of the updated CASN transaction indicate a change from the cached values to the updated cached values, and wherein running of the re-evaluated new batch is foregone when the updated cached values of the CASN transaction and the cached values of the updated CASN transaction indicate no change from the cached values to the updated cached values.
 10. The method of claim 7, further comprising: re-scheduling running of the new batch when the new batch fails due to a conflict by adding the new batch to the queue of waiting batches, wherein the re-evaluated new batch is run in accordance with the queue of waiting batches.
 11. The method of claim 7, further comprising: determining one of: a second subset of the plurality of update operations associated with at least one second existing waiting batches in the queue of waiting batches overlaps with the reevaluated new batch, a second subset of the plurality of update operations associated with at least one second existing running batch overlap with the re-evaluated new batch, or operations of any second existing waiting batches do not overlap with the re-evaluated new batch and operations of any second existing running batches do not overlap with the re-evaluated new batch; when it is determined that the second subset of the plurality of update operations associated with the at least one second existing waiting batches in the queue of waiting batches overlaps with the re-evaluated new batch, updating the re-evaluated new batch by merging the at least one second existing waiting batches with the re-evaluated new batch by: serially composing the second subset of the plurality of update operations of the at least one second existing waiting batches with a set of update operations of the re-evaluated new batch; saving second intermediate results of evaluating each of the second subset of the plurality of update operations and the set of update operations of the re-evaluated new batch by further updating the updated cached values to include the second intermediate results; and replacing the at least one second existing waiting batches in the queue of waiting batches with an updated re-evaluated new batch resulting from merging the at least one second existing waiting batches with the re-evaluated new batch; when it is determined that the second subset of the plurality of update operations associated with the at least one second existing running batch overlap with the re-evaluated new batch, including the re-evaluated new batch in the queue of waiting batches; and when it is determined that the operations of the any second existing waiting batches do not overlap with the re-evaluated new batch and that operations of the any second existing running batches do not overlap with the re-evaluated new batch, authorizing immediate running of the reevaluated new batch.
 12. The method of claim 11, wherein the set of update operations includes the subset of the plurality of update operations of the at least one existing waiting batches and the one update operation of the new batch as a result of merging the new batch with the at least one existing waiting batch to update the new batch prior to running the new batch and prior to generating the re-evaluated new batch in response to determining running the new batch failed due to the conflict.
 13. The method of claim 1, running the new batch includes executing the CASN transaction against a Dispersed Storage Network (DSN) memory that includes the plurality of storage units, and further includes facilitating updates to overlapping data stored in at least two of the plurality of storage units.
 14. The method of claim 1, wherein the plurality of update operations includes updates to data stored in the plurality of storage units, and wherein it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch in response to determining that the subset of the plurality of update operations include an update to a portion of a data object stored in one of the plurality of storage units, and that the new batch includes an update to another portion of the data object stored in another one of the plurality of storage units.
 15. The method of claim 1, wherein the plurality of update operations includes updates to a plurality of set of encoded data slices, wherein each set of encoded data slices is associated with one of a plurality of data segments, wherein each one of the plurality of data segments was dispersed storage error encoded to produce a corresponding set of encoded data slices for storage in a set of the storage units, and wherein it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch in response to determining that the subset of the plurality of update operations includes an update to one encoded data slice of a set of encoded data slices corresponding to a data segment and that the new batch includes an update to another encoded data slice of the set of encoded data slices corresponding to the data segment.
 16. A processing system of a dispersed storage and task (DST) processing unit comprises: at least one processor; a memory that stores operational instructions, that when executed by the at least one processor, cause the processing system to: for each one update operation of a plurality of update operations, create a new batch update containing the one update operation, wherein the update operations include updating content of data stored by a plurality of storage units; evaluate the one update operation in an empty transaction context to generate cached values; determine one of: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch, a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch, or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch; when it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch, update the new batch by merging the at least one existing waiting batches with the new batch by: serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch; and saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation by updating the cached values based on the intermediate results; when it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch, include the new batch in the queue of waiting batches; when it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch, authorizing immediate running of the new batch; and running the new batch by creating a multi-word compare and swap (CASN) transaction from its evaluated transaction context that includes the cached values.
 17. The DST processing unit of claim 16, wherein saving the intermediate results includes updating the cached values based on the intermediate results, and wherein running the new batch resulting from merging the at least one existing waiting batches with the new batch includes utilizing the intermediate results.
 18. The DST processing unit of claim 16, wherein the operational instructions, when executed by the at least one processor, further cause the processing system to: generate a re-evaluated new batch by re-evaluating the new batch in a new transaction context to generate updated cached values in response to determining running the new batch failed due to a conflict; and run the re-evaluated new batch by creating an updated CASN transaction from the new transaction context that includes the updated cached values.
 19. The DST processing unit of claim 18, wherein the operational instructions, when executed by the at least one processor, further cause the processing system to: determine one of: a second subset of the plurality of update operations associated with at least one second existing waiting batches in the queue of waiting batches overlaps with the reevaluated new batch, a second subset of the plurality of update operations associated with at least one second existing running batch overlap with the re-evaluated new batch, or operations of any second existing waiting batches do not overlap with the re-evaluated new batch and operations of any second existing running batches do not overlap with the re-evaluated new batch; when it is determined that the second subset of the plurality of update operations associated with the at least one second existing waiting batches in the queue of waiting batches overlaps with the re-evaluated new batch, update the re-evaluated new batch by merging the at least one second existing waiting batches with the re-evaluated new batch by: serially composing the second subset of the plurality of update operations of the at least one second existing waiting batches with a set of update operations of the re-evaluated new batch, wherein the set of update operations includes the subset of the plurality of update operations of the at least one existing waiting batches and the one update operation of the new batch as a result of merging the new batch with the at least one existing waiting batch to update the new batch prior to running the new batch and prior to generating the re-evaluated new batch in response to determining running the new batch failed due to the conflict; and saving second intermediate results of evaluating each of the second subset of the plurality of update operations and the set of update operations of the re-evaluated new batch by further updating the updated cached values to include the second intermediate results; replacing the at least one second existing waiting batches in the queue of waiting batches with an updated re-evaluated new batch resulting from merging the at least one second existing waiting batches with the re-evaluated new batch; when it is determined that the second subset of the plurality of update operations associated with the at least one second existing running batch overlap with the re-evaluated new batch, include the re-evaluated new batch in the queue of waiting batches; and when it is determined that the operations of the any second existing waiting batches do not overlap with the re-evaluated new batch and that operations of the any second existing running batches do not overlap with the re-evaluated new batch, authorizing immediate running of the reevaluated new batch.
 20. A non-transitory computer readable storage medium comprises: at least one memory section that stores operational instructions that, when executed by a processing system of a dispersed storage network (DSN) that includes a processor and a memory, causes the processing system to: for each one update operation of a plurality of update operations, create a new batch update containing the one update operation, wherein the update operations include updating content of data stored by a plurality of storage units; evaluate the one update operation in an empty transaction context to generate cached values; determine one of: a subset of the plurality of update operations associated with at least one existing waiting batches in a queue of waiting batches overlaps with the new batch, a subset of the plurality of update operations associated with at least one existing running batch overlap with the new batch, or operations of any existing waiting batches do not overlap with the new batch and operations of any existing running batches do not overlap with the new batch; when it is determined that the subset of the plurality of update operations associated with the at least one existing waiting batches in the queue of waiting batches overlaps with the new batch, update the new batch by merging the at least one existing waiting batches with the new batch by: serially composing the subset of the plurality of update operations of the at least one existing waiting batches with the one update operation of the new batch; and saving intermediate results of evaluating each of the subset of the plurality of update operations and the one update operation by updating the cached values based on the intermediate results; when it is determined that the subset of the plurality of update operations associated with the at least one existing running batch overlap with the new batch, include the new batch in the queue of waiting batches; when it is determined that the operations of the any existing waiting batches do not overlap with the new batch and that operations of the any existing running batches do not overlap with the new batch, authorizing immediate running of the new batch; and running the new batch by creating a multi-word compare and swap (CASN) transaction from its evaluated transaction context that includes the cached values. 